home *** CD-ROM | disk | FTP | other *** search
- Path: news.ran.es!usenet
- From: mper@ran.es
- Newsgroups: comp.lang.c++
- Subject: Random numbers
- Date: 9 Jan 1996 21:01:01 GMT
- Organization: RAN INTERNET
- Message-ID: <4cul2d$gi@news.ran.es>
- NNTP-Posting-Host: ppp008.ran.es
- X-Newsreader: News for Windows NT X1.0-74
-
- How many "random" numbers can be created using the rand() function without repitition.
- I am using this routine for a physics projects which simulates alpha scattering (Rutherford
- Scattering), and I do about 1 million iterations through the main loop, creating 1 million random numbers.
- Obviously, if its just repeating the numbers, the whole point of the simulation is gone.
-
- Anyone who knows, please answer,
-
- TIA
- Martin.
-
-